package com.hystrix.payment.service;

import com.ks.springcloud.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：Administrator
 * @Date：2022/7/12/0012 22:50
 * @Versiion：1.0
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface FeignPaymentService {

    @GetMapping("/payment/get/{id}")
    CommonResult getPaymenyById(@PathVariable("id") Long id);

    @GetMapping("/payment/paymentOk/{time}")
    String paymentOk(@PathVariable("time") String time);

    @GetMapping("/payment/paymentTimeout/{time}")
    String paymentTimeout(@PathVariable("time") String time);

}
